<?php require_once("includes/security.php"); ?>
<?php 
require_once("includes/initializeSession.php");
require("includes/openConnection.php");



	if(isset($_POST['submit'])) 
	{
		if( isset($_POST['about_us_text']) )
		{
			$about_us_text= $_POST ['about_us_text'] ;
			mysql_query("UPDATE pagecontent SET`aboutus`='$about_us_text'")or die ('could not updated:'.mysql_error());
		}
	}
$result = mysql_query("SELECT aboutus FROM pagecontent");
$row = mysql_fetch_array($result); 

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>קליניקה נטורופתית</title>
</head>

<body>
<container id="container">
  <?php require("header.php"); ?>
      <content id="content">
      <contentTitle id="contentTitle">
      מי אנחנו?
      </contentTitle>
      <contentText id="contentText">
      <p>
      
      
      <?php
	  require("includes/openConnection.php");
$result = mysql_query("SELECT aboutus FROM pagecontent");
$row = mysql_fetch_array($result); 
require("includes/closeConnection.php");
	  ?>
   <form name="form" action="#" method="post" enctype="multipart/form-data">
<table border="1" >
<tr>
        <td>
        <textarea  rows="15" cols="50"  id="about_us_text"  name="about_us_text"><?php echo $row['aboutus'];  ?>
</textarea>
        </td>
  		</tr>
    <tr>
        <td>
        <input type="submit" name="submit" value="עדכן" /> 
        </td>
    </tr>
</table>
</form>

</p>
</contentText>
      </content>
</container>
    
     
    
</body>
</html>
